﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Microsoft.Web.Administration;

namespace ServerManager
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "ISiteWCFService" in both code and config file together.
    [ServiceContract]
    public interface ISiteWCFService
    {
        [OperationContract]
        void DoWork();
        [OperationContract]
        long CreateIISSite(string siteName, string physicalPath, string bindingProtocol, string host, string ip, string port, string frameVersion, bool isIntegrated, bool enable32Bit);
        /// <summary>
        /// 创建serv-u用户
        /// </summary>
        /// <param name="loginid">登录名</param>
        /// <param name="password">密码</param>
        /// <param name="dir">目录</param>
        /// <param name="max">配额</param>
        [OperationContract]
        void CreateFTPSUUsers(string loginid,string password,string dir,long max);

        [OperationContract]
        List<string> GetSites();
        /// <summary>
        ///  重设应用程序池
        /// </summary>
        /// <param name="siteName"></param>
        /// <param name="ApplicationPoolName"></param>
        /// <param name="frameVersion"></param>
        /// <param name="isIntegrated"></param>
        /// <param name="enable32Bit"></param>
        [OperationContract]
        void ResetApplicationPool(string ApplicationPoolName, string frameVersion, bool isIntegrated, bool enable32Bit);
        [OperationContract]
        void RestartApplicationPool(string ApplicationPoolName);
    }
}
